<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page  isELIgnored="false"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<title>物品列表</title>
</head>
<body>

<div class="container bs-docs-container">
  <br>
  <div class="panel panel-default">
  
  	
  	<div class="panel-heading">添加商品</div>
  
  	<div class="panel-body">
		  <form class="form-horizontal" action="<%=request.getContextPath()%>/goods/add" method="post">
		  	<div class="form-group">
		    <label for="goodsName" class="col-sm-2 control-label">商品名称</label>
		    <div class="col-sm-10">
		      <input type="text" class="form-control" name="goodsname" placeholder="goodsName">
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <label for="goodsNameEn" class="col-sm-2 control-label">英文名</label>
		    <div class="col-sm-10">
		      <input type="text" class="form-control" name="goodsnameen" placeholder="goodsNameEn">
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <label for="maningprice" class="col-sm-2 control-label">万宁价格</label>
		    <div class="col-sm-10">
		      <input type="number" step="0.1" class="form-control" name="maningprice" placeholder="万宁价格">
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <div class="col-sm-offset-2 col-sm-10">
		      <button type="submit" class="btn btn-primary">提交</button>
		    </div>
		  </div>
		  
		  
		  	
		  </form>
	</div>
  </div>
  
  
  
  
  <table class="table table-striped">
  <caption>常用代购物品表.</caption>
  	<thead>
        <tr>
          <th>Name</th>
          <th>Englist name</th>
          <th>Maning price</th>
        </tr>
      </thead>
      
      <tbody>
      	<c:forEach items="${goodsList}" var="t">
      		<tr>
	          <td><c:out value="${t.goodName}" /></td>
	          <td><c:out value="${t.goodNameEn}" /></td>
	          <td><c:out value="${t.maningPrice}" /></td>
	        </tr>
      	</c:forEach>
      	
      
      </tbody>
      
</table>
  
</div>

</body>
</html>